find intersection of two arrays in javascript